using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using EntityLayer;
using DataAccessLayer;
using DataLayer;
using InfraStructureLayer;

namespace BusinessLayer
{
    public class busBots:BusinessBase
    {
        public DataTable SelectBots()
        {
            try
            {
                datBots insDatBots = new datBots();
                DbConnector insDbConnector = new DbConnector();
                return insDatBots.SelectBots(insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
        public void UpdateBots(entBots parEntBots)
        {
            try
            {
                datBots insDatBots = new datBots();
                DbConnector insDbConnector = new DbConnector();
                insDatBots.UpdateBots(parEntBots,insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }
    }
}
